The felicific calculus is an algorithm formulated by utilitarian philosopher Jeremy Bentham for calculating the degree or amount of pleasure that a specific action is likely to cause. Bentham, an ethical hedonist, believed the moral rightness or wrongness of an action to be a function of the amount of pleasure or pain that it produced.